package cn.polymhomework04;

public class ShapeTest {

    public static void main(String[] args) {

        Circle circle = new Circle(2);
        System.out.println("圆面积：" + circle.getArea() + "，圆周长：" + circle.getPerimeter());

        Rectangle rect = new Rectangle(3, 5);
        System.out.println("矩形面积：" + rect.getArea() + "，矩形周长：" + rect.getPerimeter());
    }
}
